package home

import (
	"gin-worked/app/common/middleware"
	controller "gin-worked/app/home/controllers"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {

	//r.Use(middleware.Cors)               //跨域处理中间件
	//r.Use(middleware.GetParamMiddleware) //参数处理中间件

	r.POST("home/login/login", controller.UserController{}.Login)
	home := r.Group("home", middleware.CheckLogin)
	{
		home.POST("user/user_info", controller.UserInfoController{}.Info)

	}
}
